module Sph
  def Sph::processKeyEvent(event)
    {
      :key => event.keyval,
      :shift => event.state.shift_mask?,
      :ctrl => event.state.control_mask?
    }
  end
  
  def Sph::scroller(w)
    sw = Gtk::ScrolledWindow.new
    sw.child = w
    sw.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC)
    return sw
  end
end